import threading,time
start = time.time()
class Mythread(threading.Thread):

    def __init__(self):
        # super(Mythread.self).__init__()
        threading.Thread.__init__(self)


    def run(self):

        print(123123,threading.currentThread())
        time.sleep(3)

t_obj = []
for i in range(50):
    a = Mythread()
    a.setName('zhuzige')
    a.setDaemon(True)
    a.start()
    t_obj.append(a)
# for r in t_obj:
#     r.join()



cols =  time.time()-start
print(cols,threading.currentThread(),threading.active_count())


